package com.solace.selenium.utils;

import java.time.LocalDateTime;

public class LocalDateUtils {
    public static String localDateToCron(LocalDateTime now) {
        String join = String.join(" ",
                String.valueOf(now.getSecond()),
                String.valueOf(now.getMinute()),
                String.valueOf(now.getHour()),
                String.valueOf(now.getDayOfMonth()),
                String.valueOf(now.getMonthValue()),
                "?",
                String.valueOf(now.getYear()));
        return join;
    }
}
